import Vue from 'vue'
import App from './App'
Vue.config.productionTip = false
App.mpType = 'app'

import './main.css'

const app = new Vue(App);
app.$mount();

const wxapp = getApp();
wxapp.globalData = {
  jobtype:'all',
  ROOT_URL:'https://hzy.api.szjisou.com/',
  base: []
};
wx.request({
  url: 'https://hzy.api.szjisou.com/', //仅为示例，并非真实的接口地址
  data: {
     service: 'App.Hong.GetBase',
     table: '4_block'
  },
  header: {
      'content-type': 'application/json' // 默认值
  },
  success: function(res) {
    let data = res.data.data.result
    wxapp.globalData.base = data
    wx.setStorageSync('base', data)
    console.log(data)
  }
})
export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      'pages/logs/main',
      '^pages/index/main',
      'pages/job/main',
      'pages/job-second/main',
      'pages/news/main',
      'pages/contact/main',
      'pages/refer/main',
      'pages/jobinfo/main',
      'pages/newinfo/main',
      'pages/apply/main',
      'pages/map/main',
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      // navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      "selectedColor":"#2197D8",
      "list": [{
        "pagePath": "pages/index/main",
        "text": "首页",
        "iconPath":"./static/bar/home1.png",
        "selectedIconPath":'./static/bar/home.png'
      }, {
        "pagePath": "pages/job/main",
        "text": "职位",
        "iconPath":"./static/bar/zhiwei1.png",
        "selectedIconPath":'./static/bar/zhiwei.png'
      }, {
        "pagePath": "pages/news/main",
        "text": "资讯",
        "iconPath":"./static/bar/zixun1.png",
        "selectedIconPath":'./static/bar/zixun.png'
      }, {
        "pagePath": "pages/contact/main",
        "text": "联系我们",
        "iconPath":"./static/bar/contact1.png",
        "selectedIconPath":'./static/bar/contact.png'
      }]
    },
  }
}
